package com.yuyou.tas.feedback.mapper;

import com.yuyou.tas.service.api.feedback.dto.FeedbackClassDTO;
import com.yuyou.tas.service.api.feedback.entity.FeedbackClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FeedbackClassMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FeedbackClass record);

    FeedbackClass selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FeedbackClass record);

    Integer getMaxSortByClassId(@Param(value = "classId") Long classId);

    Integer findFeedbackClassCount(@Param(value = "classId") Long classId);

    List<FeedbackClassDTO> findFeedbackClass(@Param(value = "classId") Long classId ,
                                             @Param(value = "stuCount") Integer stuCount ,
                                             @Param(value = "userId") Long userId ,
                                             @Param(value = "fromRecord") Integer fromRecord ,
                                             @Param(value = "toRecord") Integer toRecord);
}